<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      list-style: none;
      box-sizing: border-box;
    }

    ul li {
      display: flex;
    }

    dl {
      display: flex;
    }

    dl img {
      width: 120px;
    }

    dl button {
      padding: 6px 12px;
    }

    .btm {
      height: 50px;
      width: 100%;
      position: fixed;
      bottom: 0;
      left: 0;
      display: flex;
      justify-content: space-between;
      padding: 10px;
      align-items: center;
      background: skyblue;
    }
  </style>
</head>

<body>
  <div id="app">
    <ul>
      <li v-for="(v, i) in car" :key="i">
        <input type="checkbox" v-model="v.isChecked"> {{ v.isChecked }}
        <dl>
          <dt><img :src="v.url" alt=""></dt>
          <dd>
            <p>{{ v.desc }}</p>
            <p style="color:red;">单价：￥{{ v.price }}</p>
            <p>
              <button @click="sub(v)">-</button>
              <span>{{ v.count }}</span>
              <button @click="v.count++">+</button>
            </p>
          </dd>
        </dl>
      </li>
    </ul>

    <div class="btm">
      <b> 全选
        <input type="checkbox" v-model="totalChecked">
      </b>
      <b> 总价： {{ totalPrice }}</b>
      <b> 总数量： {{ totalCount }}</b>
    </div>
  </div>
</body>

</html>